<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>体检结果查询</title>
<%@ include file="/common/meta.jsp" %>
<link href="${ctx}/css/table.css" type="text/css" rel="stylesheet"/>
<script src="${ctx}/js/table.js" type="text/javascript"></script>
<script src="${ctx}/js/validate/jquery.validate.js" type="text/javascript"></script>
<script src="${ctx}/js/validate/messages_cn.js" type="text/javascript"></script>
<script src="${ctx}/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
	var type = ${session.current_person.type};
	if(type != 1){
		$("#personId").attr("disabled",true);
		$("#name").attr("disabled",true);
		$("#grade").attr("disabled",true);
		$("#clazz").attr("disabled",true);
		$("#teacher").attr("disabled",true);
		$("#zteacher").attr("disabled",true);
	}
});
</script>
</head>
<body>
<form id="mainForm" action="pe-result!execute.action" method="get">
<input type="hidden" name="page.pageNo" id="pageNo" value="${page.pageNo}"/>
<input type="hidden" name="page.orderBy" id="orderBy" value="${page.orderBy}"/>
<input type="hidden" name="page.order" id="order" value="${page.order}"/>
<input type="hidden" id="id" name="id" value="${id}"/>
<div id="message"><s:actionmessage theme="mytheme" cssClass="success"/></div>
    <table width="80%" class="noborder" align="center">
	    <tr>
		     <td>工&nbsp;/&nbsp;学&nbsp;号： </td><td><input type="text" name="personId" size="15" id="personId" value="${personId}"/></td>
	    	 <td>姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名： </td><td><input type="text" size="15" id="name" name="name" value="${name}"/></td>
     		 <td>年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;级： </td><td><input type="text" name="grade" size="15" id="grade" value="${grade}"/></td>
	   </tr>
	   <tr>
	    	 <td>班&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;级： </td><td><input type="text" name="clazz" size="15" id="clazz" value="${clazz}"/></td>
	    	 <td>班&nbsp;&nbsp;主&nbsp;&nbsp;任：  </td><td><input type="text" name="teacher" size="15" id="teacher" value="${teacher}"/></td>
	    	 <td>起始时间： </td><td><input type="text" id="startDate" name="startDate" size="15" readonly="readonly" value="<s:date name='startDate' format='yyyy-MM-dd'/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})"/></td>
	   </tr>
	   <tr>
	    	 
	    	 <td>结束时间: </td><td><input type="text" id="endDate" name="endDate" size="15" readonly="readonly" value="<s:date name='endDate' format='yyyy-MM-dd'/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})"/></td>
			 <td></td><td></td>
			    <td></td><td><input type="submit" align="right" value="查&nbsp;&nbsp;询"></input>&nbsp;&nbsp;
	    	 		<input type="button" align="right" value="重&nbsp;&nbsp;置"></input>
	    	 </td>
	   </tr>    
    </table>
    <p></p>
    <div id="content">
		<table width="80%" border="1" id="customers" align="center">
			<tr>
				<th>操作</th>
				<th>职工号/学号</th>
				<th>体检时间</th>
				<th>套餐名称</th>
				<th>年级</th>
				<th>班级</th>

			</tr>
			<s:iterator value="page.result">
			<tr>
				<td><a href="pe-result!downLoad.action?id=${id}">报告下载</a>&nbsp;</td>
				<td>${person.idNumber}&nbsp;</td>
				<td>${examDate}&nbsp;</td>
				<td>${peSet.name}&nbsp;</td>
				<td>${person.clazz.gradeName}&nbsp;</td>
				<td>${person.clazz.className}&nbsp;</td>
			</tr>
			</s:iterator>
		</table>
	</div>
	<table width="95%" class="noborder">
	  <tr>
	  <td align="right">第${page.pageNo}页, 共${page.totalPages}页
		<a href="javascript:jumpPage(1)">首页</a>
		<s:if test="page.hasPre"><a href="javascript:jumpPage(${page.prePage})">上一页</a></s:if>
		<s:if test="page.hasNext"><a href="javascript:jumpPage(${page.nextPage})">下一页</a></s:if>
		<a href="javascript:jumpPage(${page.totalPages})">末页</a>
	  </td>
	  </tr>
	</table> 
</form>
</body>
</html>